﻿using System;
using System.Collections.Generic;
using SimpleServiceBus.EndpointManagement.Wcf.Contracts.Data;

namespace SimpleServiceBus.EndpointMonitor.Web.Models
{
    public class EndpointErrorListViewData
    {
        public EndpointErrorListViewData()
        {
            ErrorMessagePreviewLength = 100;
        }

        public ManagedEndpointContract Endpoint { get; set; }
        public DateTime ErrorDate { get; set; }
        public IList<EndpointErrorContract> Errors { get; set; }
        public bool HideErrorMessagePreview { get; set; }
        public int ErrorMessagePreviewLength { get; set; }
    }
}
